home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / cuda.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  11KB  |  289 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  Author: H├╝seyin Temucin <htemucin@gmail.com>
  4.  
  5.  This library is free software; you can redistribute it and/or
  6.  modify it under the terms of the GNU Library General Public
  7.  License as published by the Free Software Foundation; either
  8.  version 2 of the License, or (at your option) any later version.
  9.  
  10.  This library is distributed in the hope that it will be useful,
  11.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  Library General Public License for more details.
  14.  
  15.  You should have received a copy of the GNU Library General Public
  16.  License along with this library; if not, write to the
  17.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18.  Boston, MA 02111-1307, USA.
  19. -->
  20. <language id="cuda" _name="CUDA" version="2.0" _section="Sources">
  21.     <metadata>
  22.       <property name="globs">*.cu;*.cuh</property>
  23.       <property name="line-comment-start">//</property>
  24.       <property name="block-comment-start">/*</property>
  25.       <property name="block-comment-end">*/</property>
  26.     </metadata>
  27.  
  28.  
  29.     <styles>
  30.       <style id="keyword"       _name="Keyword"           map-to="def:keyword"/>
  31.       <style id="data-type"     _name="Data Type"         map-to="def:type"/>
  32.       <style id="cuda-global"   _name="Global Functions"  map-to="def:function"/>
  33.       <style id="cuda-device"   _name="Device Functions"  map-to="def:function"/>
  34.       <style id="global-var"    _name="Global Variables"  map-to="def:identifier"/>
  35.     </styles>
  36.  
  37.     <definitions>
  38.       <context id="cuda">
  39.       <include>  
  40.         <context ref="c:comment"/> 
  41.  
  42.         <context ref="c:string"/>
  43.  
  44.         <context ref="c:escaped-character"/>
  45.  
  46.         <context ref="c:storage-class"/> 
  47.  
  48.         <context ref="c:comment-multiline"/>
  49.  
  50.         <context ref="c:char"/>
  51.  
  52.         <context ref="def:decimal"/>
  53.  
  54.         <context ref="def:float"/>
  55.  
  56.         <context ref="c:hexadecimal"/> 
  57.  
  58.         <context ref="c:octal"/>        
  59.  
  60.         <context ref="c:keywords"/>            
  61.  
  62.         <context id="cuda-keywords" style-ref="keyword">
  63.           <keyword>__global__</keyword>    
  64.           <keyword>__host__</keyword>
  65.           <keyword>__device__</keyword>
  66.           <keyword>__constant__</keyword>
  67.           <keyword>__shared__</keyword>            
  68.         </context>
  69.  
  70.         <context ref="c:types" />
  71.  
  72.         <context id="cuda-types" style-ref="data-type">
  73.           <keyword>uint</keyword>
  74.           <keyword>int1 </keyword>
  75.           <keyword>uint1</keyword>
  76.           <keyword>int2</keyword>
  77.           <keyword>uint2</keyword>
  78.           <keyword>int3</keyword>
  79.           <keyword>uint3</keyword>
  80.           <keyword>int4</keyword>
  81.           <keyword>uint4</keyword>
  82.           <keyword>float1</keyword>
  83.           <keyword>float2</keyword>
  84.           <keyword>float3</keyword>
  85.           <keyword>float4</keyword>
  86.           <keyword>char1</keyword>
  87.           <keyword>char2</keyword>
  88.           <keyword>char3</keyword>
  89.           <keyword>char4</keyword>
  90.           <keyword>uchar1</keyword>
  91.           <keyword>uchar2</keyword>
  92.           <keyword>uchar3</keyword>
  93.           <keyword>uchar4</keyword>
  94.           <keyword>short1</keyword>
  95.           <keyword>short2</keyword>
  96.           <keyword>short3</keyword>
  97.           <keyword>short4</keyword>
  98.           <keyword>dim1</keyword>
  99.           <keyword>dim2</keyword>
  100.           <keyword>dim3</keyword>
  101.           <keyword>dim4</keyword>
  102.           </context>
  103.  
  104.         <context id="cudaglobal" style-ref="global-var">
  105.           <keyword>gridDim</keyword>
  106.           <keyword>blockIdx</keyword>
  107.           <keyword>blockDim</keyword>
  108.           <keyword>threadIdx</keyword>
  109.         </context>
  110.  
  111.         <context id="kernel-call" style-ref="latex:display-math">
  112.           <start><<<</start>
  113.           <end>>>></end>
  114.         </context>
  115.  
  116.         <context id="cudaatom" style-ref="cuda-device">
  117.           <keyword>atomicAdd</keyword>
  118.           <keyword>atomicAnd</keyword>
  119.           <keyword>atomicCAS</keyword>
  120.           <keyword>atomicDec</keyword>
  121.           <keyword>atomicExch</keyword>
  122.           <keyword>atomicInc</keyword>
  123.           <keyword>atomicMax</keyword>
  124.           <keyword>atomicMin</keyword>
  125.           <keyword>atomicOr</keyword>
  126.           <keyword>atomicSub</keyword>
  127.           <keyword>atomicXor</keyword>
  128.         </context>
  129.  
  130.         <context id="cudadev" style-ref="cuda-device">
  131.           <keyword>tex1D</keyword>
  132.           <keyword>tex1Dfetch</keyword>
  133.           <keyword>tex2D</keyword>
  134.           <keyword>__float_as_int</keyword>
  135.           <keyword>__int_as_float</keyword>
  136.           <keyword>__float2int_rn</keyword>
  137.           <keyword>__float2int_rz</keyword>
  138.           <keyword>__float2int_ru</keyword>
  139.           <keyword>__float2int_rd</keyword>
  140.           <keyword>__float2uint_rn</keyword>
  141.           <keyword>__float2uint_rz</keyword>
  142.           <keyword>__float2uint_ru</keyword>
  143.           <keyword>__float2uint_rd</keyword>
  144.           <keyword>__int2float_rn</keyword>
  145.           <keyword>__int2float_rz</keyword>
  146.           <keyword>__int2float_ru</keyword>
  147.           <keyword>__int2float_rd</keyword>
  148.           <keyword>__uint2float_rn</keyword>
  149.           <keyword>__uint2float_rz</keyword>
  150.           <keyword>__uint2float_ru</keyword>
  151.           <keyword>__uint2float_rd</keyword>
  152.           <keyword>__fadd_rz</keyword>
  153.           <keyword>__fmul_rz</keyword>
  154.           <keyword>__fdividef</keyword>
  155.           <keyword>__mul24</keyword>
  156.           <keyword>__umul24</keyword>
  157.           <keyword>__mulhi</keyword>
  158.           <keyword>__umulhi</keyword>
  159.           <keyword>__mul64hi</keyword>
  160.           <keyword>__umul64hi</keyword>
  161.           <keyword>min</keyword>
  162.           <keyword>umin</keyword>
  163.           <keyword>fminf</keyword>
  164.           <keyword>fmin</keyword>
  165.           <keyword>max</keyword>
  166.           <keyword>umax</keyword>
  167.           <keyword>fmaxf</keyword>
  168.           <keyword>fmax</keyword>
  169.           <keyword>abs</keyword>
  170.           <keyword>fabsf</keyword>
  171.           <keyword>fabs</keyword>
  172.           <keyword>sqrtf</keyword>
  173.           <keyword>sqrt</keyword>
  174.           <keyword>sinf</keyword>
  175.           <keyword>__sinf</keyword>
  176.           <keyword>sin</keyword>
  177.           <keyword>cosf</keyword>
  178.           <keyword>__cosf</keyword>
  179.           <keyword>cos</keyword>
  180.           <keyword>sincosf</keyword>
  181.           <keyword>__sincosf</keyword>
  182.           <keyword>expf</keyword>
  183.           <keyword>__expf</keyword>
  184.           <keyword>exp</keyword>
  185.           <keyword>logf</keyword>
  186.           <keyword>__logf</keyword>
  187.           <keyword>log</keyword>
  188.         </context>
  189.  
  190.         <context id="cuda-runtime" style-ref="cuda-global">
  191.           <keyword>cudaBindTexture</keyword>
  192.           <keyword>cudaBindTextureToArray</keyword>
  193.           <keyword>cudaChooseDevice</keyword>
  194.           <keyword>cudaConfigureCall</keyword>
  195.           <keyword>cudaCreateChannelDesc</keyword>
  196.           <keyword>cudaD3D10GetDevice</keyword>
  197.           <keyword>cudaD3D10MapResources</keyword>
  198.           <keyword>cudaD3D10RegisterResource</keyword>
  199.           <keyword>cudaD3D10ResourceGetMappedArray</keyword>
  200.           <keyword>cudaD3D10ResourceGetMappedPitch</keyword>
  201.           <keyword>cudaD3D10ResourceGetMappedPointer</keyword>
  202.           <keyword>cudaD3D10ResourceGetMappedSize</keyword>
  203.           <keyword>cudaD3D10ResourceGetSurfaceDimensions</keyword>
  204.           <keyword>cudaD3D10ResourceSetMapFlags</keyword>
  205.           <keyword>cudaD3D10SetDirect3DDevice</keyword>
  206.           <keyword>cudaD3D10UnmapResources</keyword>
  207.           <keyword>cudaD3D10UnregisterResource</keyword>
  208.           <keyword>cudaD3D9GetDevice</keyword>
  209.           <keyword>cudaD3D9GetDirect3DDevice</keyword>
  210.           <keyword>cudaD3D9MapResources</keyword>
  211.           <keyword>cudaD3D9RegisterResource</keyword>
  212.           <keyword>cudaD3D9ResourceGetMappedArray</keyword>
  213.           <keyword>cudaD3D9ResourceGetMappedPitch</keyword>
  214.           <keyword>cudaD3D9ResourceGetMappedPointer</keyword>
  215.           <keyword>cudaD3D9ResourceGetMappedSize</keyword>
  216.           <keyword>cudaD3D9ResourceGetSurfaceDimensions</keyword>
  217.           <keyword>cudaD3D9ResourceSetMapFlags</keyword>
  218.           <keyword>cudaD3D9SetDirect3DDevice</keyword>
  219.           <keyword>cudaD3D9UnmapResources</keyword>
  220.           <keyword>cudaD3D9UnregisterResource</keyword>
  221.           <keyword>cudaEventCreate</keyword>
  222.           <keyword>cudaEventDestroy</keyword>
  223.           <keyword>cudaEventElapsedTime</keyword>
  224.           <keyword>cudaEventQuery</keyword>
  225.           <keyword>cudaEventRecord</keyword>
  226.           <keyword>cudaEventSynchronize</keyword>
  227.           <keyword>cudaFree</keyword>
  228.           <keyword>cudaFreeArray</keyword>
  229.           <keyword>cudaFreeHost </keyword>
  230.           <keyword>cudaGetChannelDesc</keyword>
  231.           <keyword>cudaGetDevice</keyword>
  232.           <keyword>cudaGetDeviceCount</keyword>
  233.           <keyword>cudaGetDeviceProperties</keyword>
  234.           <keyword>cudaGetErrorString</keyword>
  235.           <keyword>cudaGetLastError</keyword>
  236.           <keyword>cudaGetSymbolAddress</keyword>
  237.           <keyword>cudaGetSymbolSize</keyword>
  238.           <keyword>cudaGetTextureAlignmentOffset</keyword>
  239.           <keyword>cudaGetTextureReference</keyword>
  240.           <keyword>cudaGLMapBufferObject</keyword>
  241.           <keyword>cudaGLRegisterBufferObject</keyword>
  242.           <keyword>cudaGLSetGLDevice</keyword>
  243.           <keyword>cudaGLUnmapBufferObject</keyword>
  244.           <keyword>cudaGLUnregisterBufferObject</keyword>
  245.           <keyword>cudaLaunch</keyword>
  246.           <keyword>cudaMalloc</keyword>
  247.           <keyword>cudaMalloc3D</keyword>
  248.           <keyword>cudaMalloc3DArray</keyword>
  249.           <keyword>cudaMallocArray</keyword>
  250.           <keyword>cudaMallocHost</keyword>
  251.           <keyword>cudaMallocPitch</keyword>
  252.           <keyword>cudaMemcpy</keyword>
  253.           <keyword>cudaMemcpy2D</keyword>
  254.           <keyword>cudaMemcpy2DArrayToArray</keyword>
  255.           <keyword>cudaMemcpy2DFromArray</keyword>
  256.           <keyword>cudaMemcpy2DToArray</keyword>
  257.           <keyword>cudaMemcpy3D</keyword>
  258.           <keyword>cudaMemcpyArrayToArray</keyword>
  259.           <keyword>cudaMemcpyFromArray</keyword>
  260.           <keyword>cudaMemcpyFromSymbol</keyword>
  261.           <keyword>cudaMemcpyToArray</keyword>
  262.           <keyword>cudaMemcpyToSymbol</keyword>
  263.           <keyword>cudaMemset</keyword>
  264.           <keyword>cudaMemset2D</keyword>
  265.           <keyword>cudaMemset3D</keyword>
  266.           <keyword>cudaSetDevice</keyword>
  267.           <keyword>cudaSetupArgument</keyword>
  268.           <keyword>cudaStreamCreate</keyword>
  269.           <keyword>cudaStreamDestroy</keyword>
  270.           <keyword>cudaStreamQuery</keyword>
  271.           <keyword>cudaStreamSynchronize</keyword>
  272.           <keyword>cudaThreadExit</keyword>
  273.           <keyword>cudaThreadSynchronize</keyword>
  274.           <keyword>cudaUnbindTexture</keyword>
  275.         </context>
  276.  
  277.         <context ref="c:preprocessor"/>
  278.  
  279.         <context ref="c:include"/>
  280.  
  281.         <context ref="c:if0-comment"/>
  282.         </include>
  283.       </context>
  284.     </definitions>
  285. </language>
  286.  
  287.  
  288.  
  289.